From: Jonathan Dieter Date: Mon, 19 Nov 2018 21:59:19 +0000 (+0000) Subject: Add new checksum types and make clear that data excluded from the signature X-Git-Tag: archive/raspbian/1.1.9+ds1-1+rpi1~1^2~71 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7bb22193e6733cc4baac9402337641d3fb0aa2fd;p=zchunk.git Add new checksum types and make clear that data excluded from the signature should be omitted, not zero-filled. Signed-off-by: Jonathan Dieter --- diff --git a/zchunk_format.txt b/zchunk_format.txt index 78c2449..bc93594 100644 --- a/zchunk_format.txt +++ b/zchunk_format.txt @@ -134,6 +134,8 @@ Chunk checksum type Current values: 0 = SHA-1 1 = SHA-256 + 2 = SHA-512 + 3 = SHA-512/128 (first 128 bits of SHA-512 checksum) Chunk count This is a count of the number of chunks in the zchunk file including the @@ -205,6 +207,7 @@ Signature size Signature The actual signature. The signature MUST only apply to the header, excluding the header size, the header checksum, the signature count and the signatures. + The excluded data MUST be omitted when calculating the signature. Signatures are designed so that anyone can add a new signature to a file without changing the validity of other signatures, but the header size and